﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="wfPrgTrabDet.aspx.cs" Inherits="trabajo_wfPrgTrabDet" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Programación de Trabajos</title>
    <link rel="stylesheet" href="../styles/a-main/a-main.css" type="text/css"/>
    <script language="javascript" src="../include/toolkit.js"></script>
<script language="javascript" type="text/javascript">
// <!CDATA[
function btnLimpiarComp_onclick() {
document.getElementById('txtSATA').value="";
document.getElementById('txtAta').value = "";
document.getElementById('txtComp').value = "";
document.getElementById('lblDesComp').value = "";
document.getElementById('lblDesComp').style.visibility="hidden"
}

function popUpSelPerson(ctrl,ctrl2,PerCargo)
    {
    var url = "../persona/wfAddPerson.aspx?ctrl="+ctrl2+"&ccar="+PerCargo;
    window.open(url,"per","width=750,height=750,status=yes");
    }

// ]]>

function recargarOpener(){
//window.opener.location.reload();
window.opener.__doPostBack('cambiosRealizados','');
window.close();
}
</script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="content">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" style="background-color:#292864">
<tr>
<td width="70%"><img src="../styles/a-main/sistemahh.gif" border="0" /></td>
<td width="30%" align="right"><img src="../styles/a-main/LanLogo.png" border="0" /></td>
</tr>
<tr>
<td height="3" background="../styles/a-main/lineRedBlank.gif" colspan="2"></td>
</tr>
</table>
<br />
    <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
  <TD><IMG height=12 src="../styles/a-main/top_left.png" width=13></TD>
  <TD width=12 background="../styles/a-main/line_top.png" height=10></TD>
  <TD><IMG height=12 src="../styles/a-main/top_right.png" width=13></TD>
</TR>
<TR>
  <TD width=11 background="../styles/a-main/left.png" height=3></TD>
  <TD bgColor=#FFFFFF>
  <!-- TITULO DE LA PANTALLA -->
    <span class="sTit">Detalle de la programación</span>
  <!-- FIN TITULO DE LA PANTALLA -->
  </TD>
  <TD width=13 background="../styles/a-main/right.png" height=3></TD>
</TR>
<TR>
  <TD width=11 background="../styles/a-main/left.png" height=3></TD>
  <TD bgColor=#FFFFFF>
  <!-- TABLA 2 CON BACKGROUND COLOR -->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
  <TD><IMG height=12 src="../styles/a-main/lightblueBorder_topleft.gif" width=13></TD>
  <TD width=3 background="../styles/a-main/lightblueBorder_top.gif" height=12></TD>
  <TD><IMG height=12 src="../styles/a-main/lightblueBorder_topright.gif" width=13></TD>
</TR>
<TR>
  <TD width=13 background="../styles/a-main/lightblueBorder_left.gif" height=3></TD>
  <TD bgColor=#ebeffa>
  <!-- TABLA FILTROS DEL CLIENTE -->


    <table width="100%" cellpadding="5" cellspacing="5">
    <tr>
    <td width="2%">
        <img src="../styles/a-main/Bullet485.gif" border="0" /></td>
    <td><span class="sTit">Datos del Trabajo</span></td>
    </tr>
        <tr>
            <td width="2%">
            </td>
            <td>
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="width: 168px">
                            <span class="lblCaption">Origen:</span></td>
                        <td>
                            <asp:DropDownList ID="ddl_Origen" runat="server" CssClass="sel" AutoPostBack="True" OnSelectedIndexChanged="ddl_Origen_SelectedIndexChanged">
    </asp:DropDownList></td>
                        <td>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    <tr>
    <td width="2%"></td>
    <td>
    <div id="divSubATA" runat="server" style="display:none">
            <table width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="width: 68px">
                        <span class="lblCaption"><span class="lblCaption">ATA</span></span></td>
                    <td style="width: 94px">
                        <span class="lblCaption">Sub ATA</span></td>
                    <td rowspan="2" style="width: 147px">
                        <asp:ImageButton ID="imgVerificarSubATA" runat="server" ImageUrl="../styles/a-main/BTVerificarSubATA.gif" OnClick="imgVerificarSubATA_Click" /></td>
                    <td rowspan="2">
        <asp:Label ID="lblDesComp" runat="server" CssClass="lblCaption"></asp:Label>
        <asp:TextBox ID="txtComp" runat="server" CssClass="inTextData" Width="30px" MaxLength="2" Enabled="False" Visible="False">00</asp:TextBox>&nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 68px">
        <asp:TextBox ID="txtAta" runat="server" CssClass="inTextData" Width="30px" MaxLength="2" Enabled="False"></asp:TextBox></td>
                    <td style="width: 94px">
                        <asp:TextBox ID="txtSATA" runat="server"
                CssClass="inTextData" Width="30px" MaxLength="2" Enabled="False"></asp:TextBox></td>
                </tr>
            </table>
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 175px">
                </td>
                <td>
                    &nbsp;</td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="width: 175px">
                    <span class="lblCaption">Descripción del Trabajo:</span></td>
                <td>
            <asp:TextBox ID="txtDesTrab" runat="server" CssClass="inTextData" Width="550px"></asp:TextBox></td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="width: 175px">
                </td>
                <td>
                    &nbsp;</td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="width: 175px">
            <span class="lblCaption">Tiempo Estimado:</span></td>
                <td>
            <asp:TextBox ID="txtTEstimado" runat="server" onBlur="javascript:ValidaMaximoValor(this,999);" onKeyPress="return ValidaFormatDecimal(event);" CssClass="inTextData" Enabled="False" MaxLength="5" Width="70px"></asp:TextBox>
                    <span class="lblCaption">(Hrs)</span></td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="width: 175px">
                </td>
                <td>
                    &nbsp;</td>
                <td>
                </td>
            </tr>
        </table>
        </div>
        <div id="divTipTra" runat="server" style="display:none;">
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 175px">
                    <span class="lblCaption">Tipo de Trabajo Realizado</span></td>
                <td>
                    <asp:DropDownList ID="ddl_TipTrab" runat="server" CssClass="sel" Width="350px" Enabled="False" AutoPostBack="True" OnSelectedIndexChanged="ddl_TipTrab_SelectedIndexChanged">
        </asp:DropDownList></td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="width: 175px">
                </td>
                <td>
            <asp:Label ID="lblTEstimado" runat="server" CssClass="lblCaption"></asp:Label></td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="width: 175px">
                </td>
                <td>
                    &nbsp;</td>
                <td>
                </td>
            </tr>
        </table>
        </div>
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 175px">
                    <span class="lblCaption">Estado del Trabajo:</span></td>
                <td>
                    <asp:DropDownList ID="ddl_EstadoTrabProg" runat="server" CssClass="sel"></asp:DropDownList><asp:RangeValidator ID="rvEstTrab" runat="server" ControlToValidate="ddl_EstadoTrabProg"
        ErrorMessage="Debe Seleccionar un estado válido" MaximumValue="17" MinimumValue="16"
        ValidationGroup="a">*</asp:RangeValidator></td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="width: 175px">
                </td>
                <td>
                    &nbsp;</td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="width: 175px">
            <span class="lblCaption">Nota:</span></td>
                <td>
            <asp:TextBox ID="txtNota" runat="server" CssClass="inTextData" Width="550px" Rows="4" TextMode="MultiLine"></asp:TextBox></td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="width: 175px">
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
        </table>
        <tr>
            <td width="2%">
            </td>
            <td>
            <asp:Label ID="lblMensaje" runat="server" CssClass="lblMensaje"></asp:Label>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="a" />
            </td>
        </tr>
        <tr>
            <td width="2%">
            </td>
            <td>
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            <asp:ImageButton ID="imgGrabar" runat="server" ImageUrl="../styles/a-main/BTgrabar.gif" OnClick="imgGrabar_Click" />
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp;&nbsp;
                <img border="0" src="../styles/a-main/BTCerrar.gif" onclick="javascript:window.close();" /></td>
        </tr>
    </table>
    
    <table width="100%" border="0">
  <tr>
    <td colspan="5" align="center">
        &nbsp;<asp:HiddenField ID="hid_TEstimado" runat="server" />
        <asp:HiddenField ID="hid_CodComponente" runat="server" />
        <asp:HiddenField ID="hid_InfTraSeq" runat="server" />
          <asp:HiddenField ID="hid_Idtrab" runat="server" />
        &nbsp;
        &nbsp;&nbsp;
    </td>
  </tr>
</table>
    
  
  <!-- FIN TABLA FILTROS DEL CLIENTE -->
  </TD>
  <TD width=13 background="../styles/a-main/lightblueBorder_right.gif" height=3></TD>
</TR>
<TR>
  <TD><IMG height=12 src="../styles/a-main/lightblueBorder_bottomleft.gif" width=13></TD>
  <TD width=3 background="../styles/a-main/lightblueBorder_bottom.gif" height=12></TD>
  <TD><IMG height=12 src="../styles/a-main/lightblueBorder_bottomright.gif" width=13></TD>
</TR>
</TBODY>						
</TABLE>

  <!-- FIN TABLA 2 CON BACKGROUND COLOR -->
  </TD>
  <TD width=13 background="../styles/a-main/right.png" height=3></TD>
</TR>
<TR>
  <TD><IMG height=12 src="../styles/a-main/bottom_left.png" width=13></TD>
  <TD width=3 background="../styles/a-main/line_bottom.png" height=12></TD>
  <TD><IMG height=12 src="../styles/a-main/bottom_right.png" width=13></TD>
</TR>
</TBODY>						
</TABLE>

    </div>
    </form>
</body>
</html>